Skip to content

Commit

Permalink
Clarify behaviour of core.hypertext_escape (#15464)
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx authored Nov 22, 2024
1 parent b6eaf7b commit 4faa16f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4faa16f

Please sign in to comment.