I have a XML mark-up/code like the following. I want to replace the text inside one of the tags (in this case
The source is inside a textarea. I have the following code, but it is obviously not doing what I want.
code=$("xml-code").val(); // content of XML sourcenewBegin = "The same old beginning"; // new text insideThis is just appending to the existing text inside the begin tags. I have a feeling this can be done only using Regex, but unfortunately I have no idea how to do it.
ليست هناك تعليقات:
إرسال تعليق