MCPcopy Index your code
hub / github.com/textAngular/textAngular / validCustomTag

Function validCustomTag

src/textAngular-sanitize.js:595–601  ·  view source on GitHub ↗
(tag, attrs, lkey, value)

Source from the content-addressed store, hash-verified

593
594// this function is used to manually allow specific attributes on specific tags with certain prerequisites
595function validCustomTag(tag, attrs, lkey, value){
596 // catch the div placeholder for the iframe replacement
597 if (tag === 'img' && attrs['ta-insert-video']){
598 if(lkey === 'ta-insert-video' || lkey === 'allowfullscreen' || lkey === 'frameborder' || (lkey === 'contenteditable' && value === 'false')) return true;
599 }
600 return false;
601}
602
603/**
604 * create an HTML/XML writer which writes to buffer

Callers 1

htmlSanitizeWriterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected