< vs &lt;

Discussion about HTML and XHTML related issues.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

< vs &lt;

Post by roedygr » Tue Oct 04, 2016 6:52 pm

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?

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3408
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: < vs &lt;

Post by Albert Wiersch » Tue Oct 04, 2016 6:57 pm

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.
Image
Albert Wiersch

Post Reply