It seems that this code is not wokring on velocity template,
#foreach ($req in $Project.Requirements)
{
#set($brRegex = "<[^>]*>")
#set ($sr = $req.StatedRequirement.replaceAll($brRegex, " "))
"SR":"$sr"
}#if($velocityHasNext)nonext #end
#end
as for $req.StatedRequirement I've tested against the strings below
Some text here [Selection (one or more): organizational analysis, independent thirdparty analysis, organizational penetration testing, independent third-party penetration testing] of [Assignment: organization-defined supply chain elements, processes, and actors] associated with the information system, system component, or information system service.<br/>
<br/>
Other Text<br/>
<br/>
This control enhancement addresses analysis and/or testing of the supply chain, not just delivered items. Supply chain elements are information technology products or product components that contain programmable logic and that are critically important to information system functions. Supply chain processes include, for example: <br/>
<br/>
(i) hardware, software, and firmware development processes; <br/>
<br/>
(ii) shipping/handling procedures;<br/>
<br/>
(iii) personnel and physical security programs; <br/>
<br/>
(iv) configuration management tools/measures to maintain provenance; or <br/>
<br/>
(v) any other programs, processes, or procedures associated with the production/distribution of supply chain elements. <br/>
<br/>
blah blah. <br/>
on the $sr the
and other html tags should all be replaced on the output but they're still there, what could be wrong? Thanks!