title: Wrap H1-H6 Tags with Typo3 ParseFunc depending on the class set in RTE
body: <p>I want to add inline-svgs to my h1 to h6 Tags depending on the class set in the RTE.</p>
  
  <p>Example:
  RTE: </p>
  
  <pre><code>&lt;h1 class="icon--clock"&gt;Header&lt;/h1&gt;
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>&lt;h1 class="icon--clock"&gt;&lt;svg&gt;...&lt;/svg&gt;Header&lt;/h1&gt;
  </code></pre>
  
  <p>I've done something similar with links before, using the parseFunc Config. A method like this: <a href="https://wiki.typo3.org/External_links" rel="nofollow noreferrer">https://wiki.typo3.org/External_links</a></p>
  
  <p>Is there any way to access and split the tag and class like the link parameters through TypoScript?</p>
  
  <p>I also tried using a userFunc</p>
  
  <pre><code>lib.parseFunc.userFunc = ...\MyClass-&gt;MyUserFunc
  </code></pre>
  
  <p>but in Params I only get the tag content, not the tag or the classes that have been set themselves.</p>
  
  <p>I'm using Typo8 with the ckeditor, but I don't think that makes a difference.</p>
  
  <p>Can I even do this?
  How do I do this?</p>
  
  <p>I know that I can alternatively add different header layouts and use the tt_content header field, because it's easier to manipulate the template there. But I'd love to know if there is a way to this in the RTE.</p>