J
Jazzdrums
Hello,
I've (parts of ) HTML documents and a list of words that I have to transform
as an hyperlinks, i.e. surround them with a "<a href="...">" "</a>".
A first simple approach is to parse the HTML, loop on each textual nodes and
then loop on each words and made a string replacement provided the fact that
the words isn't in some particular tags context (<title>, etc.).
It could work since my words list is quite small (less than 100 entries),
but it can grow. Do you know if there exists some components that can help
in this task ?
The next step would be to code some letters automata but I have no time for
this.
Thank you
I've (parts of ) HTML documents and a list of words that I have to transform
as an hyperlinks, i.e. surround them with a "<a href="...">" "</a>".
A first simple approach is to parse the HTML, loop on each textual nodes and
then loop on each words and made a string replacement provided the fact that
the words isn't in some particular tags context (<title>, etc.).
It could work since my words list is quite small (less than 100 entries),
but it can grow. Do you know if there exists some components that can help
in this task ?
The next step would be to code some letters automata but I have no time for
this.
Thank you