Ammoniex.HTML (ammoniex v0.1.0)
Link to this section Summary
Functions
Given an unsanitized string of HTML, cleans any malicious code
Link to this section Functions
Link to this function
clean(arg1)
Given an unsanitized string of HTML, cleans any malicious code
example
Example
iex> Ammoniex.HTML.clean(~s[<a onclick="function() { alert("hello")">hijack</a>])
~s[<a rel="noopener noreferrer">hijack</a>]