问题
Shiny (R GUI) replaces < and > with & lt; and & gt; in tags$script(), how to fix that? I need to use greater and less signs in my javascript.
回答1:
Whoops, sorry about that!
You can work around this problem for now by wrapping your script strings in HTML(), which will tell Shiny not to escape (this works in any context, not just inside script tags).
来源:https://stackoverflow.com/questions/19816551/shiny-r-gui-replaces-and-with-lt-and-gt-in-tagsscript