Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
how to strip Html code from data field.
Step 1: In your extract QVW, add the below VB code under tools Edit module,
change Requested module security to system access and allow system access
Function stripHTML(strHTML)
'Strips the HTML tags from strHTML
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<(.|\n)+?>"
'Replace all HTML tag matches with the empty string
strOutput = objRegExp.Replace(strHTML, "")
'Replace all < and > with < and >
strOutput = Replace(strOutput, "<", "<")
strOutput = Replace(strOutput, ">", ">")
stripHTML = strOutput 'Return the value of strOutput
Set objRegExp = Nothing
End Function
Step 2: in edit script, after the field
replace(replace(stripHTML([content/properties/Your filed name])
,':',':')
,' ',' ') as newcleanfiledname,
Step 1: In your extract QVW, add the below VB code under tools Edit module,
change Requested module security to system access and allow system access
Function stripHTML(strHTML)
'Strips the HTML tags from strHTML
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<(.|\n)+?>"
'Replace all HTML tag matches with the empty string
strOutput = objRegExp.Replace(strHTML, "")
'Replace all < and > with < and >
strOutput = Replace(strOutput, "<", "<")
strOutput = Replace(strOutput, ">", ">")
stripHTML = strOutput 'Return the value of strOutput
Set objRegExp = Nothing
End Function
Step 2: in edit script, after the field
replace(replace(stripHTML([content/properties/Your filed name])
,':',':')
,' ',' ') as newcleanfiledname,
Thanks everest226 is there anyway to do that in script