Well, I've been working on a blog developed from scratch, but I encountered a mayor problem, when a user makes a comment, the form asks for Name and Comment which are almacened in:
`comname` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
and
`comment` VARCHAR( 1000 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
Respectively, but if the user inputs html tags, when php displays the information from MySQL, it displays html, I don't want this to happen. For example when an user writes:
<span style="#0F0">Hello world</span>
as comment, It displays the text "Hello world" in green.
Is there any way to avoid this, for example, encoding <> characters to display them the same way?