# NOT RUN {
# Be careful with sanitizing, it may lead to unexpected behavior.
# For example, we may want -1 to be a superscript it gets
# sanitized away with the other default special characters.
# The string appears in LaTeX exactly as shown.
# }
# NOT RUN {
sanitizeTexString('10\% of 10$ is 10^\{-1\}$')
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab