Jan 20, 2018 01:06 PM
(This post was last modified: Jan 21, 2018 10:22 AM by Fiend.)
alternative to htmlspecialchars without losing html tags.??
for example
I echo code with php on this line
echo htmlspecialchars($Names['ads']);
but htmlspecialchars strips tags so outputs following.
<p style="text-align: center;"><strong>testttttttttttttttttttttttttttttt</strong></p>
How would i go about securing my php code without losing my tags?
I guess this is impossible after my searching's. still haven't found anything.
Can anyone help with this.
for example
I echo code with php on this line
echo htmlspecialchars($Names['ads']);
but htmlspecialchars strips tags so outputs following.
<p style="text-align: center;"><strong>testttttttttttttttttttttttttttttt</strong></p>
How would i go about securing my php code without losing my tags?
I guess this is impossible after my searching's. still haven't found anything.
Can anyone help with this.



