String containing "<" ">" pulled from db get hidden in html

Associate
Joined
19 Jun 2006
Posts
162
Location
Swansea, Wales
Some of my text fields in the database are "<sometext>". The caveats are important and cant be omitted.

Obviously when they appear in the html they are parsed as html tags and not shown. Aside from scanning each string as it is got from the database and inserted a escape sequence, is there a way to prevent this? Scanning every string is going to be massive overhead!
 
Back
Top Bottom