com.helger.html.hc.config.EHCScriptInlineMode Maven / Gradle / Ivy
/**
* Copyright (C) 2014-2016 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.helger.html.hc.config;
public enum EHCScriptInlineMode
{
/**
* Emit JS code as plain text, but XML masked. The XML masking rules for text
* nodes apply.
*
*
* <script>my < script</script>
*
*/
PLAIN_TEXT,
/**
* Emit JS code as plain text, but without XML masking.
*
*
* <script>my < script</script>
*
*/
PLAIN_TEXT_NO_ESCAPE,
/**
* Wrap the whole JS code as plain text in XML comments.
*
*
* <script><!--
* my < script
* //--></script>
*
*/
PLAIN_TEXT_WRAPPED_IN_COMMENT,
/**
* Wrap the whole JS code in an XML CDATA container.
*
*
* <script><![CDATA[my < script]]></script>
*
*/
CDATA,
/**
* Wrap the whole JS code in an XML CDATA container inside a JS comment Tested
* OK with FF6, Opera11, Chrome13, IE8, IE9
*
*
* <script>//<![CDATA[
* my < script
* //]]></script>
*
*/
CDATA_IN_COMMENT;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy