HTMLHelperReplaceTagParameter Method (String, String, MatchEvaluator) |
Replaces an attribute of a specified name inside an HTML element.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntaxpublic static string ReplaceTagParameter(
string input,
string attributeName,
MatchEvaluator evaluator
)
Parameters
- input
- Type: SystemString
Element's outer HTML - attributeName
- Type: SystemString
Name of the attribute to replace - evaluator
- Type: System.Text.RegularExpressionsMatchEvaluator
A custom method that examines each match and returns either the original matched string or a replacement string
Return Value
Type:
StringInput text with the attribute replaced
See Also