Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Murray Roke 503 posts 966 karma points c-trib
    Oct 12, 2011 @ 22:34
    Murray Roke
    0

    HTML agility pack + Umbraco macro = fail

    Hi all

    I have an on DocumentAfterSave event which automatically adds glossary links into the markup.

    This is done with the HTML agility pack.

    The problem is after the html agility pack has added the tags it also messes up the umbraco macro 'tag' because it does not understand it, see the example it replaces the closing slash with a question mark.

    macro tag before html agility pack:

    <?UMBRACO_MACRO macroAlias="RandomMacroTest" />

    macro tag after html agility pack:

    <?umbraco_macro macroalias="RandomMacroTest"?>

    Any clues how I could get around this?

    Only option I've thought of so far is a regex, to go back and re-fix the macro tags, but that seems a bit messy

    Cheers.

    Murray.

     

Please Sign in or register to post replies

Write your reply to:

Draft