This file defines useful variables and functions called by other files.
- var entities, var numEntities : Arrays used to convert html entities to numeric entities.
- function sTrim(sText)
- function lTrim(sText)
- function rTrim(sText)
- function insertAt(sText,sInserted,iPos)
Array manipulation functions
- function indexOfArray(ar,item)
- function cleanupHTML(sHtml) : This a rather complex function which cleans up generated html end is called before submission.
If you want perfectly clean and conform (X)HTML code, you need to use also a server-based cleaning solution like Tidy.