php - xpath get html for persian chars -


I get the internal html for the Persian web page with this method:

  private Fixed work GetInnerHTML ($ node) {$ innerHTML = ""; $ Children = $ node- & gt; Hair nodes; Foreign currency ($ children $ child) {$ tmp_doc = New DOMDocument (); $ Tmp_doc- & gt; AppendChild ($ tmp_doc- & gt; importNode ($ child, true)); $ InnerHTML $$ Tmp_doc- & gt; Save HTML (); } $ Internal HTML return; }   

When I view the source in the browser, I get the following Persian characters:

& amp; # 1711; & Amp; # 1586; & Amp; # 1585; & Amp; # 1585; & Amp; # 1588;

What can I do to convert this coding into regular Persian characters?

For example, this character should be: Ú Ú ² § § § ± ØØØØ Ø

Sorry, I do not know what this coding That's why I can not search for it.

Thank you.

According to my comment, what do you want?

  $ innerHTML. Html_entity_decode ($ tmp_doc-> Save HTML ());   

.

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

wpf - ControlTemplate with changes for every class -

sql - Return Function using Cursor -