[Bug 685] New: stripTags() method getting confused by macros

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 685] New: stripTags() method getting confused by macros

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=685

           Summary: stripTags() method getting confused by macros
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Web Support
        AssignedTo: helma-dev@...
        ReportedBy: interface@...


Applying the stripTags() method to the following string results in a new string
containing unwanted artefacts:

var str = 'foo <a href="<% macro %>">bar</a> foobar';
res.write(stripTags(str));

// foo ">bar foobar

Obviously, the brackets (ie. lesser/greater symbols) of the macro seem to cause
some confusion. If I remove them I get the desired result:

var str = 'foo <a href="% macro %">bar</a> foobar';
res.write(stripTags(str));

// foo bar foobar

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev