Java Code Examples for org.owasp.encoder.Encode#forHtmlAttribute()

The following examples show how to use org.owasp.encoder.Encode#forHtmlAttribute() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ForHtmlAttributeTag.java    From owasp-java-encoder with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void doTag() throws JspException, IOException {
    Encode.forHtmlAttribute(getJspContext().getOut(), _value);
}
 
Example 2
Source File: ESAPIEncoder.java    From owasp-java-encoder with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/** {@inheritDoc} */
public String encodeForHTMLAttribute(String s) {
    return Encode.forHtmlAttribute(s);
}
 
Example 3
Source File: EncodeHostObject.java    From carbon-apimgt with Apache License 2.0 4 votes vote down vote up
public static String jsFunction_forHtmlAttribute(Context cx, Scriptable thisObj, Object[] args, Function funObj)
        throws APIManagementException{
    return Encode.forHtmlAttribute(validateInput(args));
}