View Javadoc
1   package com.github.searls.jasmine.format;
2   
3   import org.apache.commons.lang3.StringEscapeUtils;
4   
5   public class BuildsJavaScriptToWriteFailureHtml {
6   
7     public String build(String html) {
8       return "document.write(\"" + StringEscapeUtils.escapeEcmaScript("<div class=\"suite spec failed\">" + html + "</div>") + "\")";
9     }
10  
11  }