Skip to content

Commit 1dcf8c1

Browse files
committed
readme: escape_html is global
1 parent 5a94e83 commit 1dcf8c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ in every served dynamic file (like .html), you can insert `<?` and `?>` tags to
109109
request-independent services can be created using .service.js files referenced in services.txt.
110110
in both file types (dynamic served and services), you can use all node/bun methods including `require`, but also those:
111111

112+
- `escape_html(str)`: escapes html special characters
112113
- `log(msg)`: logs the message to the console
113114
- `service_require(service path)`: returns the matching service object
114115
- `service_require_try(service path)`: returns the matching service object or null if not found or if disabled
@@ -117,7 +118,6 @@ in both file types (dynamic served and services), you can use all node/bun metho
117118
- `async data_load(path)`: reads the file in data directory and returns its content or null
118119
- `async data_load_watch(path, callback(content))`: executes callback first and on every change
119120
- `async data_save(path, content)`: writes the content to the file in data directory
120-
- `escape_html(str)`: escapes html special characters
121121

122122
## environment variables
123123
- `rtjscomp_path_data`: path to data directory, default is `./data`

0 commit comments

Comments
 (0)