EDIT: I have a RadEditor control and want to build a filter that replaces tag types like <del>...<\del> with <s>...<\s>. See docs.telerik.com/devtools/aspnet-ajax/controls/editor/… where getHtmlContent provides an incoming param a to function with which I want to return the result.
Looking at the answers here... how to change an element type using jquery, how to use this referenced work to work on incoming parameter 'a' of wrapper function 'r' for return by another function. For example, I have...
function replaceTagType(a, b, c) {
var newContent;
/* where 'a' is the target content, 'b' is the target tag type (i.e. <b>)
and 'c' is the new tag type (i.e. <u>). What to put here that uses
above referenced work in "how to change an element type using jquery"
to assign the results to newContent ? */
return newContent;
}
So if a = "<b>test</b>", resultant var newContent = "<u>test</u>"
with– Adam Cox Dec 18 '15 at 07:38. See http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/content-filters where getHtmlContent provides the incoming param a to function with which I want to return the result.