HTML tags getting stripped out

I’m trying to add HTML source code, and the code keeps getting stripped and changed.

Trying to add:


<div class="audio-transcript-synchronizer">
    <h2>Audio Player</h2>
    
    <audio controls preload="metadata" id="audio-player" style="width: 100%; margin: 10px 0;">
        <source src="https://jukebox.uaf.edu/sites/default/files/90-06-326.mp3" type="audio/mpeg">
        Your browser does not support the audio element.
    </audio>
    
    <h3>Chapters</h3>
    <div id="chapters-list">
        <!-- The script will populate this -->
    </div>
</div>

and it gets changed to

Audio Player

Your browser does not support the audio element.

Chapters

 

In Settings → Security there’s an option called “Use HTMLPurifier,” which filters your HTML to a “safe” subset, which doesn’t include the audio or video tags.

You can disable the filtering by turning that setting off.

1 Like

I got this working for HTML. Is there anyway I can edit in Source Code view for Items?
For example, I want to put source code in the Description field.