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
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:
macro tag after html agility pack:
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.
is working on a reply...