These are deprecated methods. Avoid using.
HTML wrapper methods return a string wrapped inside an HTML tag. These are not standard methods, and may not work as expected.
- anchor()
- big()
- blink()
- bold()
- fixed()
- fontcolor()
- fontsize()
- italics()
- link()
- small()
- strike()
- sub()
- sup()
Examples:
string.bold()
let text = "Hello World!"; let result = text.bold(); result; // 'Hello World!'
string.fontcolor("color")
let text = "Hello World!"; let result = text.fontcolor("green"); result; // 'Hello World!'
string.fontsize("size")
let text = "Hello World!"; let result = text.fontsize(6); result; // 'Hello World!'
string.italics()
let text = "Hello World!"; let result = text.italics(); result; // 'Hello World!'
Read more: w3schools - String HTML Wrapper Methods