My client is needing to copy-paste some blocks of 3rd-party code into pages on the website. This code is unique on each page...and there can be hundreds of pages...so hardwiring the code isn't really an option...and we're avoiding javascript as much as possible.
So, on a productDetails.php page we have:
<?php if ($productsRecord['item_code']): ?>
<div>
<?php echo htmlencode($productsRecord['item_code']) ?>
</div>
<?php endif ?>
- where item_code, obviously, references the field in CMSB products section where she copy-pastes the code into.
The challenge that occurs is CMSB is processing that "item_code" block so that the browser shows the codeblock as full text and, thus, the browser doesn't process the code and make the magic happen.
Is there a set of php tags that tells CMSB to "just post as is" and not convert anything? So, don't change things like
<form action="https
into
<form action="https
This client is going to need to utilize 3rd-party code from several sources - so this is kind of a must and needs to be easy-peasy.