You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently GMT applies HTML escapes at different stages of the code
When ingesting data
When outputting data from the API
In the JS frontend
The two former calls are all funneled through html_escape_multi in the main.py and api_helpers.py.
The latter is done in native JS code through the function escapeString.
In JS land it often occurs that we have arguments that need to be checked on every call. For instance when we ingest URL params.
However in the API / backend side it is unneded to do the escaping on every call. It should be streamlined to only happen on ingest or at least the transformed output should be cached indefinitely if a clean DB is preferred.
The text was updated successfully, but these errors were encountered:
Currently GMT applies HTML escapes at different stages of the code
The two former calls are all funneled through
html_escape_multi
in themain.py
andapi_helpers.py
.The latter is done in native JS code through the function
escapeString
.In JS land it often occurs that we have arguments that need to be checked on every call. For instance when we ingest URL params.
However in the API / backend side it is unneded to do the escaping on every call. It should be streamlined to only happen on ingest or at least the transformed output should be cached indefinitely if a clean DB is preferred.
The text was updated successfully, but these errors were encountered: