django-editorjs-fields icon indicating copy to clipboard operation
django-editorjs-fields copied to clipboard

Display block code problem

Open Billybob opened this issue 2 years ago • 0 comments

Test with

<div hidden :hidden="hideSomething">content</div>

maybe do an "escape" in editorjs.py ?

from django.utils.html import escape

def generate_code(data):
    code = escape(data.get('code'))
    return f'<pre><code class="code">{code}</code></pre>'

Billybob avatar Oct 13 '23 10:10 Billybob