I need a javascript that can remove url tags if they are present. Something like this: <script> var url = "the url"; if url contains [ url ] and [ /url ] { strip url tags from the url } else { output the url } </script>