Sanitized HTML Typing

Type raw HTML content while enabling sanitization to automatically strip malicious or unallowed tags.

const maliciousContent = `
<em>Safe Content.</em> 
<script>alert('XSS Attempt!')</script> 
<a href="javascript:void(0)">Click</a>
`;

const typer = new TypeMorph({
  parent: "target",
  speed: 50,
  parseHTML: true, 
});

typer.type(maliciousContent);