Commits

David Black [Atlassian] committed 30d73e6

SOY-33 : fix up the computeForJsSrc method as per feedback in the pull request.

Signed-off-by: David Black <dblack@atlassian.com>

  • Participants
  • Parent commits 40e2725
  • Branches do_not_convert_existing_soy_data, issue/SOY-33 1
    1. issue/SOY-46

Comments (0)

Files changed (1)

File soy-template-plugin/src/main/java/com/atlassian/soy/impl/functions/GetTextAsHtmlFunction.java

     @Override
     public JsExpr computeForJsSrc(List<JsExpr> args)
     {
-        return getTextFunction.computeForJsSrc(args);
+        return new JsExpr("new soydata.SanitizedHtml(" + getTextFunction.computeForJsSrc(args).getText() + ")", Integer.MAX_VALUE);
     }
 
     @Override