is there a way that the following may be done:
1.) Copy HTML
2.) Paste into text box
3.) Click “Process” Button
4.) Upon hitting the “Process” button, JavaScript proceeds to go thru the text, and replace specific strings as designated by the JavaScript program.
For example:
the string “dog” is replaced with the string “<a href=”dogs.html”>dog</a>”
the string “cars” is replaced with the string “<a href=”cars.html”>cars</a>”
and so on….
where I presume there would have to be a database, stored as an array, or something somehow, where
if string is “dog” then replace with “<a href…etc>”
if string is “cars” then replace with “<a href…etc2>”
and so on and on for every string you seek to replace, and so there could be hundreds and hundreds.
At the conclusion of step 4,
5.) JavaScript outputs the new text into a new text box.
I hope I explained this clearly enough.
Thank you,
erik
(and if anyone also may know of any relevant sources with respect to this, i tryed searching the forums and didn’t come up with much.)