When creating HTML content blocks, Content Builder is manipulating the code by duplicating and converting some characters to the HTML equivalent (i.e. "<" goes to >
) - seems to only happen when AMPscript is involved.
For example - this is code that I'm pasting in:
%%[
/*
Update variable with the product IDs you'd like to promote
*/
SET @product_ids = '20000885, 20000886'
SET @prod_rowset = BUILDROWSETFROMSTRING(@product_ids, ",")
IF RowCount(@prod_rowset) >= 1 THEN
FOR @i = 1 TO 1 DO
ContentBlockByID("81195")
]%%
<table width="100%" class="mobilepadded" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;border-spacing:0px">
<tr>
<td>“This is sample copy.”</td>
</tr>
</table>
%%[Next @i ENDIF]%%
And this is what Content Builder changes it to:
%%[
/*
Update variable with the product IDs you'd like to promote
*/
SET @product_ids = '20000885, 20000886'
SET @prod_rowset = BUILDROWSETFROMSTRING(@product_ids, ",")
IF RowCount(@prod_rowset) >= 1 THEN
FOR @i = 1 TO 1 DO
ContentBlockByID("81195")
]%%
<table width="100%" class="mobilepadded" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;border-spacing:0px">
<tr>
<td>“This is sample copy.”</td>
</tr>
</table>
%%[Next @i ENDIF]%%
%%[
/*
Update variable with the product IDs you'd like to promote
*/
SET @product_ids = '20000885, 20000886'
SET @prod_rowset = BUILDROWSETFROMSTRING(@product_ids, ",")
IF RowCount(@prod_rowset) >= 1 THEN
FOR @i = 1 TO 1 DO
ContentBlockByID("81195")
]%%
<table width="100%" class="mobilepadded" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;border-spacing:0px">
<tr>
<td>“This is sample copy.”</td>
</tr>
</table>
%%[Next @i ENDIF]%%
>
symbol no longer works as an operator. As I mentioned in my other post, we're switching away from content builder to HTML paste because of this issue.