Javascript String decode_tags()

Description

Javascript String decode_tags()

String.prototype.decode_tags = function()
{
    return this.replace(/\(\?php/g,'<?php')
               .replace(/\?\)/g,'?>')
               .replace(/\(lt;/g,'<')
               .replace(/\)gt;/g,'>');
}



PreviousNext

Related