Click or drag to resize
HTMLHelperReplaceTagParameter Method (String, String, MatchEvaluator)
Replaces an attribute of a specified name inside an HTML element.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public 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: String
Input text with the attribute replaced
See Also