public class ContentUtils extends Object
Constructor and Description |
---|
ContentUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanCkEditorShit(String content)
CkEditor by default shits over your markup script with <p> tags.
|
static String |
decorateScript(String content,
String type)
Wrap content in Script tags to escape browser restrictions
|
static String |
decorateTag(String content,
String tagName,
String type)
Decorate content in a markup tag.
|
static String |
extractScript(String content)
Un-Wrap the given Script.
|
public static String decorateTag(String content, String tagName, String type)
content
- as StringtagName
- as Name of the tag`type
- of Script as Stringpublic static String decorateScript(String content, String type)
content
- as Stringtype
- of Script as Stringpublic static String cleanCkEditorShit(String content)
content
- as Stringpublic static String extractScript(String content)
decorateScript(String, String)
Copyright © 2018. All rights reserved.