ValidHTMLTranslation
Identifies invalid HTML inside translations.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
{
"hello_html": "<h2>Hello, world</h1>",
"image_html": "<a href='/cat'>Unclosed"
}
Anchor to ✓ Pass✓ Pass
{
"hello_html": "<h1>Hello, world</h1>",
"image_html": "<img src="cat.png" />",
"line_break_html": "<br />",
"self_closing_svg_html": "<svg />"
}
Anchor to OptionsOptions
ValidHTMLTranslation
enabled true
severity warning
Parameter | Description |
---|---|
enabled | Whether this check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended.
Was this page helpful?