Getting strings from html nodes using ninja technique?
This is an open discussion with no replies, filed under General.
Search
Create an account or sign in to comment.
This is an open discussion with no replies, filed under General.
Create an account or sign in to comment.
Quick Links
Symphony • Open Source XSLT CMS
--with-xsl
)
I'm using the "ninja technique" to detect if the user has posted a link with their comment like so:
This obviously has some issues. If someone has any inline text before or after the url, it won't work right or it won't select the link at all. I know I can use
contains()
instead ofstarts-with()
, but that still selects the whole<p>
node..Is there a way to target just the link/url from inside the paragraph node?
Thanks