blob: ce3a19828c2e65d477c13cd528fc9e7cef4722eb (
plain)
1
2
3
4
5
6
7
8
|
package org.jetbrains.dokka
/**
* Replaces symbols reserved in HTML with their respective entities.
* Replaces & with &, < with < and > with >
*/
public fun String.htmlEscape(): String = replace("&", "&").replace("<", "<").replace(">", ">")
|