Home Reference Source
import HTMLParser from 'typed.js/src/html-parser.js'
public class | source

HTMLParser

You can directly use an instance of this class. htmlParser

TODO: These methods can probably be combined somehow Parse HTML tags & HTML Characters

Method Summary

Private Methods
private

backSpaceHtmlChars(curString: string, curStrPos: number, self: Typed): number

Backspace HTML tags and HTML Characters

private

typeHtmlChars(curString: string, curStrPos: number, self: Typed): number

Type HTML tags & HTML Characters

Private Methods

private backSpaceHtmlChars(curString: string, curStrPos: number, self: Typed): number source

Backspace HTML tags and HTML Characters

Params:

NameTypeAttributeDescription
curString string

Current string

curStrPos number

Position in current string

self Typed

instance of Typed

Return:

number

a new string position

private typeHtmlChars(curString: string, curStrPos: number, self: Typed): number source

Type HTML tags & HTML Characters

Params:

NameTypeAttributeDescription
curString string

Current string

curStrPos number

Position in current string

self Typed

instance of Typed

Return:

number

a new string position