Passing a href as string through hidden input field (value)
<p>I'm trying to pass some data through a hidden input field. I want every part to be wrapped by an anchor tag that links to the correct page. But when I send it the hidden values are displayed probably because sending an anchor tag through a value field is not allowed. How can I do this?</p>

<p>Code:</p>

<pre><code>foreach($offertecr as $offerte1){
    if($offerte1['id'] != ''){
        $message .= '&lt;a href="#"&gt;'.$offerte1['title'].'&lt;/a&gt;&lt;br&gt;';
    }
}

&lt;input type="hidden" class="form-control-products" name="products" id="products" value="'.$message.'"&gt;
</code></pre>

<p>This results in the following:</p>

<p><a href="https://i.stack.imgur.com/Dosqt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dosqt.png" alt="enter image description here"></a></p>

<p>I probably have to use javascript for this?</p>