ford
ford

Reputation: 1887

What is HTML Entity '
'?

I'm generating an XML Document object via the DOMDocument class. In the process, some kind of whitespace within elements is being converted into 
. It's pretty difficult to search for this one since search engines treat this character as whitespace.

How do I scrub this character out of my xml output, or at least replace it with a different, preferable whitespace character?

Thanks.

Upvotes: 42

Views: 82699

Answers (2)

Michael Kay
Michael Kay

Reputation: 163262

You scrub this character out of your output by not putting it there in the first place. Look for the code that puts the carriage return in your XML, and delete it.

Upvotes: 9

BoltClock
BoltClock

Reputation: 723388

ASCII code 13 corresponds to a carriage return (in PHP, it's "\r").

Upvotes: 76

Related Questions