MCPcopy
hub / github.com/GetmeUK/ContentTools / String

Function String

external/scripts/content-edit.js:114–127  ·  view source on GitHub ↗
(html, preserveWhitespace)

Source from the content-addressed store, hash-verified

112 String._parser = null;
113
114 function String(html, preserveWhitespace) {
115 if (preserveWhitespace == null) {
116 preserveWhitespace = false;
117 }
118 this._preserveWhitespace = preserveWhitespace;
119 if (html) {
120 if (HTMLString.String._parser === null) {
121 HTMLString.String._parser = new _Parser();
122 }
123 this.characters = HTMLString.String._parser.parse(html, this._preserveWhitespace).characters;
124 } else {
125 this.characters = [];
126 }
127 }
128
129 String.prototype.isWhitespace = function() {
130 var c, _i, _len, _ref;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected