Clarify behaviour of core.hypertext_escape (#15464)

This commit is contained in:
luk3yx 2024-11-23 05:56:35 +13:00 committed by GitHub
parent b6eaf7b5a4
commit 4faa16fe0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6699,6 +6699,9 @@ Formspec
* `core.hypertext_escape(string)`: returns a string
* escapes the characters "\", "<", and ">" to show text in a hypertext element.
* not safe for use with tag attributes.
* this function does not do formspec escaping, you will likely need to do
`core.formspec_escape(core.hypertext_escape(string))` if the hypertext is
not already being formspec escaped.
* `core.explode_table_event(string)`: returns a table
* returns e.g. `{type="CHG", row=1, column=2}`
* `type` is one of: