Page 1 of 1

< vs &lt;

Posted: Tue Oct 04, 2016 6:52 pm
by roedygr
My copy of HTMLValidator fails to complain about a dangling < that should be encoded as < or removed.

I could not find anything in the config to turn on such a check. Is there one?

Re: < vs &lt;

Posted: Tue Oct 04, 2016 6:57 pm
by Albert Wiersch
No, there's not option for that. Usually that should generate a message like this because CSE HTML Validator is expecting a tag:
Found the character '<' while looking for '>' to end a tag. The character '>' must appear before another '<'. To use this character in the text portion of the document or in an attribute value, we recommend using the entity reference "<".

Can you post a sample piece of HTML that reproduces the problem?

Also, what version of CSE HTML Validator are you using?

Thanks.