Not a developer? Go to MovableType.com

Documentation

encode_js

Encodes any special characters so that the string can be used safely as the value in Javascript.

Example:

    <script type="text/javascript">
<!-- /* <![CDATA[ */
var the_title = '<$MTEntryTitle encode_js="1"$>';
/* ]]> */ -->

Depending upon your needs encode_html=”1” might be a better solution in some javascript code.

Related modifiers:

Back

Leave a Comment