Search code examples
javascriptphpmathjaxmathmljqmath

ASCII to MathML


I have a PHP-script that outputs: ((5^2x^2)^2+3)/(sqrt(sqrt(81)))

I want it to be formatted properly like you would write it.

Where can I find a ASCII to MathML converter like this: http://www.equationsheet.com/asciitomathml.php That is OpenSource in PHP or JavaScript so that I can use it on my webpage to format the mathematical fraction? (Because this is done in PHP closed source, but I need something that I can implement on my own server.)

My scripts outputs the math as that, and I need it to be displayed properly

I really appriciate that you spend your time helping me! :)


Solution

  • I recommend you to use MathJax.

    • It is used by many forums and also by StackExchange Mathematics!

    • It supports all modern browsers (even Internet Explorer 6!)

    • Very simple, just upload MathJax to your server and include 2 CSS/JS files! Some weeks ago, I installed it on a MediaWiki installation and it was easy as installing XAMPP ;)