Commit 20ab9122 authored by Nigel McNie's avatar Nigel McNie
Browse files

Escape mimetype/src of content.



It's a sneaky RichardM.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 77e1e7f3
......@@ -11,7 +11,7 @@
{/if}
{if $summary} <summary{if $summarytype != 'text'} type="{$summarytype}"{/if}>{if $summarytype == 'xhtml'}<div xmlns="http://www.w3.org/1999/xhtml">{/if}{if $summarytype == 'xhtml'}{$summary|clean_html|export_leap_rewrite_links}{elseif $summarytype == 'html'}{$summary|clean_html|export_leap_rewrite_links|escape}{else}{$summary|escape}{/if}{if $summarytype == 'xhtml'}</div>{/if}</summary>
{/if}
<content{if $contenttype != 'text'} type="{$contenttype}"{/if}{if $contentsrc} src="{$contentsrc}"{/if}>{if $contenttype == 'xhtml'}<div xmlns="http://www.w3.org/1999/xhtml">{/if}{if $contenttype == 'xhtml'}{$content|clean_html|export_leap_rewrite_links}{elseif $contenttype == 'html'}{$content|clean_html|export_leap_rewrite_links|escape}{else}{$content|escape}{/if}{if $contenttype == 'xhtml'}</div>{/if}</content>
<content{if $contenttype != 'text'} type="{$contenttype|escape}"{/if}{if $contentsrc} src="{$contentsrc|escape}"{/if}>{if $contenttype == 'xhtml'}<div xmlns="http://www.w3.org/1999/xhtml">{/if}{if $contenttype == 'xhtml'}{$content|clean_html|export_leap_rewrite_links}{elseif $contenttype == 'html'}{$content|clean_html|export_leap_rewrite_links|escape}{else}{$content|escape}{/if}{if $contenttype == 'xhtml'}</div>{/if}</content>
<rdf:type rdf:resource="leaptype:{$leaptype}"/>
{if $artefacttype} <mahara:artefactplugin mahara:type="{$artefacttype}" mahara:plugin="{$artefactplugin}"/>
{/if}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment