title: Symfony Serializer xml encode append specified properties with CDATA
body: <p>Is it possible to append string with CDATA using <a href="https://symfony.com/doc/current/components/serializer.html" rel="nofollow noreferrer">Symfony Serializer</a> (not JMS).
  By looking int to implementation it's only appends if string contains tag elements &lt;&gt;</p>
  <pre class="lang-php prettyprint-override"><code>    private function needsCdataWrapping(string $val): bool
      {
          return 0 &lt; preg_match('/[&lt;&gt;&amp;]/', $val);
      }
  </code></pre>
  <p>Can you explicitly define specific attribute to be append with CDATA?</p>