Filtering mod_url to catch iframes and embeds

Filtering mod_url to catch iframes and embeds

by Hittesh Ahuja -
Number of replies: 0

Hi All,

Currently building a filter plugin that would capture iframe and embed src and filter it to certain conditions. Although this works great in Page,Label and other resources it does not seem to work in the URL resource where a URL is set to be displayed as an embed. I can see the iframe being generated through the source code view but I think it happens before my filter($text,$options) method can get to it hence I get nothing returned back when I do a var_dump(). Anyone knows how to extend my filter plugin  that inherits from

moodle_text_filter

so it also takes into account the URL module to filter  ? 


Thanks

Hittesh 

Average of ratings: -