DV
Asked
I implemented a <pre> <code> to highlight code. Everything works ok but some characters aren't allowed in forum post like "<=". If the character is written everything bellow it is removed from post text. How can i except it or where i have to modify to except it or others like it (<= its available in javascript, so i guess thats why it isn't allowed.)
- MSAnsweredHello,
You can check the `encode_html` method of `app/libraries/Tec.php`
Can you please take a screenshot where it `<=` is not allowed?
Thank you - DVAnsweredSolved the issue by replacing strip_tags with htmlspecialchars in function encode_html from Tec.php
- MSAnsweredThank you for updating
- Login to Reply