FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Thorny string translation issue.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Thorny string translation issue. [message #180810 is a reply to message #180795] Tue, 19 March 2013 23:56 Go to previous messageGo to previous message
Christoph Becker is currently offline  Christoph Becker
Messages: 91
Registered: June 2012
Karma:
Member
The Natural Philosopher wrote:

> yes, but that's not the output I want.

Sorry, I had misunderstood your request. If you want to keep all
(X)HTML tags and replace special characters not belonging to tags,
BootNic's solution using tidy is appropriate. But be aware that tidy
may not filter possibly malicious user input:

>>> tUp('<img src="" onclick="doSomethingBad()">')
'<img src="" onclick="doSomethingBad()">'

If you need this, you may have a look at <http://htmlpurifier.org/>.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hot list for BA/QA- Load Runner, Software Tester, Business Analyst/ Project Coordinator & SAP Business Object Developer
Next Topic: split array and string from string (trust me it will make sense when you read)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 22:54:45 GMT 2024

Total time taken to generate the page: 0.04373 seconds