Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: stripping characters from html

by almut (Canon)
on Aug 03, 2010 at 13:29 UTC ( #852656=note: print w/replies, xml ) Need Help??

in reply to stripping characters from html

I am finding certain characters are breaking the script.

In what way are they breaking the script?  Maybe you just need to entity-encode those characters (preferably use numeric entities (encode_entities_numeric()), as in contrast to HTML, in XML only very few named entities are predefined (i.e. work without explicit entity declarations)).   Does ∫ really cause an error?

Alternatively, try specifying an appropriate encoding (in the first line of the XML file: <?xml version="1.0" encoding="..."?>).

Or, as a last resort, simply strip everything outside of the ASCII range.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852656]
[Discipulus]: grandma' remedy!
[Eily]: for some reason the best nodes of the day start from the 5th
[Eily]: since normally the only posts I don't see are the ones of sun-d in worst nodes, for a second I thought this meant that he somehow managed to get all four best posts for today

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-03-20 09:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (248 votes). Check out past polls.