Skip to content

Commit

Permalink
Merge branch 'fix-lite-parser' into beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Oct 4, 2018
2 parents ff45284 + d18e593 commit 35919ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mathjax3-ts/adaptors/lite/Parser.ts
Expand Up @@ -356,6 +356,9 @@ export class LiteParser implements MinDOMParser<LiteDocument> {
* @return {string} The string with " replaced by entities
*/
public protectAttribute(text: string) {
if (typeof text !== 'string') {
text = String(text);
}
return text.replace(/"/, '&quot;');
}

Expand Down

0 comments on commit 35919ef

Please sign in to comment.