react-helmet-async icon indicating copy to clipboard operation
react-helmet-async copied to clipboard

events in scripts as reference and not render it as string

Open eduardocque opened this issue 1 year ago • 0 comments

based on https://github.com/staylor/react-helmet-async/issues/202 one of the issues seems to be that we are trying to set onload as string using setAttribute and based on https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute#value will save it as string making this can lose the context in some cases or triggering the wrong references

this probably is not perfect but if require any change, let me know

eduardocque avatar Nov 25 '23 08:11 eduardocque