Skip to content
Snippets Groups Projects
Commit 7ef61e7d authored by rswindell's avatar rswindell
Browse files

Strip &lmr; and ‏ non-printing entities from decoded HTML.

parent effadc82
No related branches found
No related tags found
No related merge requests found
......@@ -2299,6 +2299,10 @@ js_html_decode(JSContext *cx, uintN argc, jsval *arglist)
outbuf[j++]=CTRL_U;
continue;
}
if(strcmp(token,"lrm")==0 /* left-to-right mark, not printable */
|| strcmp(token,"rlm")==0) /* right-to-left mark, not printable */
continue;
/* Unknown character entity, leave intact */
j+=sprintf(outbuf+j,"&%s;",token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment