Click or drag to resize
HTMLHelperReplaceTagParameter Method (String, String, String)
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,
	string replacement
)

Parameters

input
Type: SystemString
Element's outer HTML
attributeName
Type: SystemString
Name of the attribute to replace
replacement
Type: SystemString
Replacement string

Return Value

Type: String
Input text with the attribute replaced
See Also