I am creating a website that will allow users to use certain latex selection commands to create a document. Then they will be able to view the document, which means that I:
- parse the text file to make sure that there are only valid commands.
- use PHP to send custom text to the
pdflatex - displays output pdf file to user
How safe is it? Is there a better way to do this?
source share