开发者

Converting diacritics to numerical HTML code with HTML Purifier

开发者 https://www.devze.com 2023-04-03 04:22 出处:网络
I\'m having trouble finding the correct setting for HTML Purifier 4.3.0 to convert diacritics to numerical HTML code. Is this possible using this library?

I'm having trouble finding the correct setting for HTML Purifier 4.3.0 to convert diacritics to numerical HTML code. Is this possible using this library?

So, fr开发者_如何学Pythonom încă to încă .


As you can see in the demo: by default: no. To me, but there isn't a clear description of what it does and doesn't, HTML Purifier looks like it's meant to strip html tags from input.

I think you're better off using htmlentities().


If you're working in UTF-8 mode, as HTML Purifier does by default, there's no need to escape character entities. If you tell HTML Purifier that you're working in ASCII mode, it will do so for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号