Update README.md

This commit is contained in:
Piero Toffanin 2021-09-11 16:27:09 -04:00 committed by GitHub
parent 678c9fb6e2
commit a63394549b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ Response:
}
```
### HTML
### HTML (beta)
Request:
@ -47,7 +47,7 @@ Request:
const res = await fetch("https://libretranslate.com/translate", {
method: "POST",
body: JSON.stringify({
q: '<a href="#" class="green">Hello!</a>',
q: '<p class="green">Hello!</p>',
source: "en",
target: "es",
format: "html"
@ -62,7 +62,7 @@ Response:
```javascript
{
"translatedText": "<a href\"#='class=\"green\"'>¡Hola!</a>"
"translatedText": "<p class=\"green\">¡Hola!</p>"
}
```