Forum


Replies: 10   Views: 4986
Mathml tag
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by asantos  · 03-09-2014 - 17:42

Hello. I already tested this function, addMathEquation(), this works fine, but it's not my case. I have a HMTL code with MathML, I need convert all HTML to Docx, how I should do? Sample of code: [code] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body id="wrapDiv"> What is the aswer of <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msub><mrow><mi>F</mi></mrow><mrow><mi>R</mi><mi>E</mi><mi>S</mi></mrow></msub><mo>=</mo><mfrac><mrow><msub><mrow><mi>C</mi></mrow><mrow><mi>X</mi></mrow></msub><mo>?</mo><mtext> </mtext><mtext> </mtext><mo>⋅</mo><mtext> </mtext><mtext> </mtext><mi>ρ</mi><mo>?</mo><mtext> </mtext><mtext> </mtext><mo>⋅</mo><mtext> </mtext><mtext> </mtext><mi>A</mi></mrow><mrow><mn>2</mn></mrow></mfrac><mo>⋅</mo><msup><mrow><mi>v</mi></mrow><mrow><mn>2</mn></mrow></msup></mrow></math> ? <span style="color:red"> (lorem ipsum) <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><msub><mrow><mi>F</mi></mrow><mrow><mi>R</mi><mi>E</mi><mi>S</mi></mrow></msub><mo>=</mo><mfrac><mrow><msub><mrow><mi>C</mi></mrow><mrow><mi>X</mi></mrow></msub><mo>?</mo><mtext> </mtext><mtext> </mtext><mo>⋅</mo><mtext> </mtext><mtext> </mtext><mi>ρ</mi><mo>?</mo><mtext> </mtext><mtext> </mtext><mo>⋅</mo><mtext> </mtext><mtext> </mtext><mi>A</mi></mrow><mrow><mn>2</mn></mrow></mfrac><mo>⋅</mo><msup><mrow><mi>v</mi></mrow><mrow><mn>2</mn></mrow></msup></mrow></math> <br><br><strong>test after mathml</strong> </span> </body> </html> [/code] How can I convert this HTML code to Docx ? Regards.