Quantcast
Channel: DOMDocument and HTML entities - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by luky for DOMDocument and HTML entities

I fixed my problem with broken entities by converting UTF-8 to UTF-8 with BOM.

View Article



Answer by Dr.Molle for DOMDocument and HTML entities

From the docs:The DOM extension uses UTF-8 encoding.Use utf8_encode() and utf8_decode() to work with texts in ISO-8859-1 encoding or Iconv for other encodings. Assuming you're using latin-1...

View Article

Answer by feeela for DOMDocument and HTML entities

This is no direct answer to the question, but you may use UTF-8 instead, which allows you to save glyphs like ÷ or × directly. To use UTF-8 with PHP DOM on the other needs a little hack.Also, if you...

View Article

Answer by Peter Kruithof for DOMDocument and HTML entities

Are you sure the & is being substituted to &? If that were the case, you'd see the exact entity, as text, not the garbled response you're getting. My guess is that it is converted to the...

View Article

DOMDocument and HTML entities

I'm trying to parse some HTML that includes some HTML entities, like ×$str = '<a href="http://example.com/"> A &#215; B</a>';$dom = new DomDocument;$dom -> substituteEntities =...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images