Skip to content

HTML tags

Here we analyze, which types of HTML tags are allowed inside the content field. Sanitizing fields is desired behavior as seen in Section B.10 of ActivityPub.

Due to firefish using markdown to format their content, the displayed result in the details table can be a bit off, please consult the example.

Details

content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del>new
<s>stricken</s>
stricken
<mark>mark</mark>
mark
find <var>x</var> (a variable)
find x (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
h1
<h2>h2</h2>
h2
<h3>h3</h3>
h3
<h4>h4</h4>
h4
<h5>h5</h5>
h5
<h1>h1</h1><h2>h2</h2>
h1h2
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br/>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
<small>small</small>
<sup>sup</sup>
<sup>sup</sup>
<sub>sub</sub>
<sub>sub</sub>
<a href='https://funfedi.dev'>funfedi</a>
<a href="https://funfedi.dev">funfedi</a>
<script>alert('hi');</script>
alert(&#39;hi&#39;);
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo"/>
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßenbauprivatfinanzierungsgesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio 
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video 
  
  Video of a cow eating
content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142" rel="nofollow noreferrer noopener" target="_blank">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del><ins>new</ins>
<s>stricken</s>
<s>stricken</s>
<mark>mark</mark>
<mark>mark</mark>
find <var>x</var> (a variable)
find <var>x</var> (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
<h1>h1</h1>
<h2>h2</h2>
<h2>h2</h2>
<h3>h3</h3>
<h3>h3</h3>
<h4>h4</h4>
<h4>h4</h4>
<h5>h5</h5>
<h5>h5</h5>
<h1>h1</h1><h2>h2</h2>
<h1>h1</h1><h2>h2</h2>
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
<small>small</small>
<sup>sup</sup>
<sup>sup</sup>
<sub>sub</sub>
<sub>sub</sub>
<a href='https://funfedi.dev'>funfedi</a>
<a href="https://funfedi.dev" rel="nofollow noreferrer noopener" target="_blank">funfedi</a>
<script>alert('hi');</script>
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video
Video of a cow eating
content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del><ins>new</ins>
<s>stricken</s>
<s>stricken</s>
<mark>mark</mark>
<mark>mark</mark>
find <var>x</var> (a variable)
find <var>x</var> (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
<h1>h1</h1>
<h2>h2</h2>
<h2>h2</h2>
<h3>h3</h3>
<h3>h3</h3>
<h4>h4</h4>
<h4>h4</h4>
<h5>h5</h5>
<h5>h5</h5>
<h1>h1</h1><h2>h2</h2>
<h1>h1</h1><h2>h2</h2>
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br/>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
<small>small</small>
<sup>sup</sup>
<sup>sup</sup>
<sub>sub</sub>
<sub>sub</sub>
<a href='https://funfedi.dev'>funfedi</a>
<a href='https://funfedi.dev'>funfedi</a>
<script>alert('hi');</script>
<script>alert('hi');</script>
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142" rel="nofollow noopener noreferrer" target="_blank">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del>new
<s>stricken</s>
<s>stricken</s>
<mark>mark</mark>
mark
find <var>x</var> (a variable)
find x (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
<p><strong>h1</strong></p>
<h2>h2</h2>
<p><strong>h2</strong></p>
<h3>h3</h3>
<p><strong>h3</strong></p>
<h4>h4</h4>
<p><strong>h4</strong></p>
<h5>h5</h5>
<p><strong>h5</strong></p>
<h1>h1</h1><h2>h2</h2>
<p><strong>h1</strong></p><p><strong>h2</strong></p>
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
small
<sup>sup</sup>
sup
<sub>sub</sub>
sub
<a href='https://funfedi.dev'>funfedi</a>
<a href="https://funfedi.dev" rel="nofollow noopener noreferrer" target="_blank">funfedi</a>
<script>alert('hi');</script>
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßenbauprivatfinanzierungsgesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio 
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video 
  
  Video of a cow eating
content text Example
<b>bold</b>
**bold**
<strong>strong</strong>
**strong**
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See [Issue 142](https://codeberg.org/helge/funfedidev/issues/142)
<em>emphasis</em>
<i>emphasis</i>
<del>old</del><ins>new</ins>
~~old~~new
<s>stricken</s>
~~stricken~~
<mark>mark</mark>
mark
find <var>x</var> (a variable)
find x (a variable)
<ol><li>ordered</li></ol>
ordered
<ul><li>unordered</li></ul>
unordered
<h1>h1</h1>
【h1】
<h2>h2</h2>
h2
<h3>h3</h3>
h3
<h4>h4</h4>
h4
<h5>h5</h5>
h5
<h1>h1</h1><h2>h2</h2>
【h1】
h2
<code>code</code>
`code`
<pre>pre</pre>
pre
line<br/>break
line
break
<p>paragraph</p>
paragraph
<small>small</small>
<small>small</small>
<sup>sup</sup>
sup
<sub>sub</sub>
sub
<a href='https://funfedi.dev'>funfedi</a>
[funfedi](https://funfedi.dev)
<script>alert('hi');</script>
alert('hi');
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
-
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßenbauprivatfinanzierungsgesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video 
  
  Video of a cow eating
content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142" rel="noopener">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del><ins>new</ins>
<s>stricken</s>
<s>stricken</s>
<mark>mark</mark>
<mark>mark</mark>
find <var>x</var> (a variable)
find <var>x</var> (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
<h1>h1</h1>
<h2>h2</h2>
<h2>h2</h2>
<h3>h3</h3>
<h3>h3</h3>
<h4>h4</h4>
<h4>h4</h4>
<h5>h5</h5>
<h5>h5</h5>
<h1>h1</h1><h2>h2</h2>
<h1>h1</h1><h2>h2</h2>
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
<small>small</small>
<sup>sup</sup>
<sup>sup</sup>
<sub>sub</sub>
<sub>sub</sub>
<a href='https://funfedi.dev'>funfedi</a>
<a href="https://funfedi.dev" rel="noopener">funfedi</a>
<script>alert('hi');</script>
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
http://pasture-one-actor/assets/nlnet.png
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio 
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video 
  
  Video of a cow eating
content content Example
<b>bold</b>
<b>bold</b>
<strong>strong</strong>
<strong>strong</strong>
<i>italic</i>
<i>italic</i>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<em>emphasis</em>
<em>emphasis</em>
<del>old</del><ins>new</ins>
<del>old</del><ins>new</ins>
<s>stricken</s>
<s>stricken</s>
<mark>mark</mark>
mark
find <var>x</var> (a variable)
find <var>x</var> (a variable)
<ol><li>ordered</li></ol>
<ol><li>ordered</li></ol>
<ul><li>unordered</li></ul>
<ul><li>unordered</li></ul>
<h1>h1</h1>
h1
<h2>h2</h2>
h2
<h3>h3</h3>
h3
<h4>h4</h4>
h4
<h5>h5</h5>
h5
<h1>h1</h1><h2>h2</h2>
h1h2
<code>code</code>
<code>code</code>
<pre>pre</pre>
<pre>pre</pre>
line<br/>break
line<br/>break
<p>paragraph</p>
<p>paragraph</p>
<small>small</small>
<small>small</small>
<sup>sup</sup>
<sup>sup</sup>
<sub>sub</sub>
<sub>sub</sub>
<a href='https://funfedi.dev'>funfedi</a>
<a href="https://funfedi.dev">funfedi</a>
<script>alert('hi');</script>
alert(&#39;hi&#39;);
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo"/>
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
wbr: Fernstraßen<wbr/>bau<wbr/>privat<wbr/>finanzierungs<wbr/>gesetz
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
Audio 
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
Video 
  
  Video of a cow eating
content content Example
<b>bold</b>
<p><span>bold</span></p>
<strong>strong</strong>
<p><span>strong</span></p>
<i>italic</i>
<p><span>italic</span></p>
<i>italic with.</i> See <a href="https://codeberg.org/helge/funfedidev/issues/142">Issue 142</a>
<p><span>italic with.</span><span> See </span><a rel="nofollow noopener noreferrer" target="_blank" href="https://codeberg.org/helge/funfedidev/issues/142"><span>Issue 142</span></a></p>
<em>emphasis</em>
<p><span>emphasis</span></p>
<del>old</del><ins>new</ins>
<p><span>~~old~~</span><span>new</span></p>
<s>stricken</s>
<p><span>~~stricken~~</span></p>
<mark>mark</mark>
<p><span>mark</span></p>
find <var>x</var> (a variable)
<p><span>find x (a variable)</span></p>
<ol><li>ordered</li></ol>
<p><span>ordered</span></p>
<ul><li>unordered</li></ul>
<p><span>unordered</span></p>
<h1>h1</h1>
<p><span>【h1】</span></p>
<h2>h2</h2>
<p><span>h2</span></p>
<h3>h3</h3>
<p><span>h3</span></p>
<h4>h4</h4>
<p><span>h4</span></p>
<h5>h5</h5>
<p><span>h5</span></p>
<h1>h1</h1><h2>h2</h2>
<p><span>【h1】</span><span><br></span><span>h2</span></p>
<code>code</code>
<p><code>code</code></p>
<pre>pre</pre>
<p><span>pre</span></p>
line<br/>break
<p><span>line<br>break</span></p>
<p>paragraph</p>
<p><span>paragraph</span></p>
<small>small</small>
<p><small><span>small</span></small></p>
<sup>sup</sup>
<p><span>sup</span></p>
<sub>sub</sub>
<p><span>sub</span></p>
<a href='https://funfedi.dev'>funfedi</a>
<p><a rel="nofollow noopener noreferrer" target="_blank" href="https://funfedi.dev"><span>funfedi</span></a></p>
<script>alert('hi');</script>
<p><span>alert('hi');</span></p>
<img src="http://pasture-one-actor/assets/nlnet.png" alt="NLNET Logo" />
wbr: Fernstraßen<wbr />bau<wbr />privat<wbr />finanzierungs<wbr />gesetz
<p><span>wbr: Fernstraßenbauprivatfinanzierungsgesetz</span></p>
Audio <audio controls src="http://pasture-one-actor/assets/cow_moo.mp3"></audio>
<p><span>Audio</span></p>
Video <video controls width="250">
  <source src="http://pasture-one-actor/assets/cow_eating.mp4" type="video/mp4" />
  Video of a cow eating</video>
<p><span>Video <br>  <br>  Video of a cow eating</span></p>