We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e3f853 commit 7e69cebCopy full SHA for 7e69ceb
src/lexer.c
@@ -2132,11 +2132,13 @@ static Node *GetCDATA( TidyDocImpl* doc, Node *container )
2132
/* if the end tag is not already escaped using backslash */
2133
SetLexerLocus( doc, lexer );
2134
lexer->columns -= 3;
2135
- TY_(ReportError)(doc, NULL, NULL, BAD_CDATA_CONTENT);
2136
2137
/* if javascript insert backslash before / */
2138
if (TY_(IsJavaScript)(container))
2139
{
+ /* Issue #281 - only warn if adding the escape! */
2140
+ TY_(ReportError)(doc, NULL, NULL, BAD_CDATA_CONTENT);
2141
+
2142
for (i = lexer->lexsize; i > start-1; --i)
2143
lexer->lexbuf[i] = lexer->lexbuf[i-1];
2144
0 commit comments