Q: Output an exact string in Blade template I am trying to add replacement tags for Sendgrid, (they look like this: <%asm_preferences_url%>), to my Blade template that's used in HTML E-mails. However, they are getting removed, (maybe because they look like invalid HTML tags).
Is there a way to tell Laravel or Blade, "hey, output this string exactly as it is and leave it alone"? I have tried {!! '<%asm_preferences_url%>' !!} but it gets stripped out. With {{ '<%asm_preferences_url%>' }} the < and > get turned into HTML entities, which are not recognized by Sendgrid.
Things I've tried:
<p>{!! '<%asm_preferences_url%>' !!}</p>  // becomes <p></p>
<p>{{ '<%asm_preferences_url%>' }}</p>    // becomes <p>&lt;%asm_preferences_url%&gt;</p>  
<p><%asm_preferences_url%></p>            // becomes <p></p>

Desired output:
<p><%asm_preferences_url%></p>

When I look at the compiled blade template it contains this, (when using the first method under "Things I've tried" above):
<?php echo '<%asm_preferences_url%>'; ?>

Which seems correct, so the string must be removed after compilation.

A: This will prevent your tags from being broken by the echo:
<?php echo htmlentities(<%asm_preferences_url%>); ?>

