1

I wonder if there's a function that prints out the content of an HTML file, inside another HTML file?

Below's HTML #1;

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <p>
        Content
    </p>
</body>
</html>

HTML #2;

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    %%[function]%%
</body>
</html>

I want the function inside HTML#2 to print out the p tag, which is in HTML#1.

1

You can save HTML#1 as an content block and retrieve it via ContentBlockbyID

You can find more information about the function here: http://help.marketingcloud.com/en/documentation/ampscript/ampscript_syntax_guide/content_ampscript_functions2/contentblockbyid6/

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.