I need a way:
to lets users to use ONLY
<strong>and<p>tags.to avoid users to use CSS with these tags ( for example this must NOT works:
<p style="margin:1000px;"> hello </p>).to avoid XSS.
htmlspecialcharsis not sufficient because it convert all tags in html entities.strip_tagis not sufficient because it allow CSS in the tags.
So what PHP functions can I use to do this ?
I don't want to use an external library like html purifier.