The angle brackets (< and >) keep disappearing from my rendered FBJS code.
Facebook suggests wrapping code within
<script> tags in standard HTML comments to prevent the FBJS parser
from removing < and > characters (or turning them into their
> HTML entities):
This will likely change at some point as the FBJS parser matures, so you may not find it necessary, but YMMV (Your Mileage May Vary).
This was standard practice for a long time to support older
browsers that didn’t handle
<script> tags properly. Then again, we
also used to build websites that degraded gracefully when people
browsers that—heaven forbid—didn’t even support it). If you take a
look at the source of one of your app’s rendered pages, you’ll find
isn’t escaped, so this recipe will likely be out-of-date pretty
quickly (you’ll also notice that the FBJS parser removes them when it
to have the comment tags in there, so you might as well add