public class EscapeHtml
extends org.apache.jmeter.functions.AbstractFunction
Function which escapes the characters in a String
using HTML entities.
For example:
"bread" & "butter"
"bread" & "butter"
.
Supports all known HTML 4.0 entities. Note that the commonly used apostrophe escape character (') is not a legal entity and so is not supported).
(Commons Lang)
Constructor and Description |
---|
EscapeHtml() |
Modifier and Type | Method and Description |
---|---|
String |
execute(org.apache.jmeter.samplers.SampleResult previousResult,
org.apache.jmeter.samplers.Sampler currentSampler) |
List<String> |
getArgumentDesc() |
String |
getReferenceKey() |
void |
setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) |
public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException
execute
in interface org.apache.jmeter.functions.Function
execute
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException
setParameters
in interface org.apache.jmeter.functions.Function
setParameters
in class org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.InvalidVariableException
public String getReferenceKey()
getReferenceKey
in interface org.apache.jmeter.functions.Function
getReferenceKey
in class org.apache.jmeter.functions.AbstractFunction
Copyright © 1998-2020 Apache Software Foundation. All Rights Reserved.