I want to let people post youtuvbe embedded videos in forum posts (Active Forums 3.6). To do this I decided that I could invent a tag that they could use. So I decided to use the following syntax: [youtube⒯igHV0CwJk[/youtube] The part in between the start and end tags is the id from youtube. I have a javascript function that I feed the id to to display it in the post. I think if I try to post it here it will get changed but here goes a try: <script language="Javascript">embedyoutube("91igHV0CwJk");</script> My thought was to change replace [youtube] with the javascript tag up to the first quote of the embedyoutube() function, and also replace the [/youtube] tag with the text from the closing quote to the closing script tag. However, this caused my site to go BOOM. With a very cryptic error about an XML parsing problem. Here is the resulting rule as created in the config:
youtube-start[youtube]embedyoutube(]]>
youtube-end[/youtube]
(I hope the tags display properly) Anyway, is there a bug that causes this, or is there a better way for me to handle the scenario I described? |