Menu

Find and replace double quote

Help
Anonymous
2012-02-09
2013-05-30
  • Anonymous

    Anonymous - 2012-02-09

    I need to find and and replace double quotes, I have tried
    <sx:findAndReplace searchFor="""" replaceWith="&quot;" />
    <sx:findAndReplace searchFor='"' replaceWith="&quot;" />
    <sx:findAndReplace searchFor='\"' replaceWith="&quot;" />

    This would be amazing if you knew how to do this.

     
  • Anonymous

    Anonymous - 2012-02-09

    I have been reading more and I am still stuck. Right now I cant get findAndReplace to work at all.  First can I use find and replace inside a fieldElementMap, or does it have to be a elementMap? Second I am just trying to replace something simple and it still doesn't work.
    <sx:elementMap element="{userdept}">
        <sx:findAndReplace searchFor="8021" replaceWith="&quot;" useRegex="false" >
            <sx:toString value="{userdept}"/>
        </sx:findAndReplace>
    </sx:elementMap>
    will this work? because its not working for me.
    <sx:fieldElementMap field="userdept" element="userdept">
        <sx:findAndReplace searchFor="8021" replaceWith="&quot;" useRegex="false" >
            <sx:toString value="{userdept}"/>
        </sx:findAndReplace>
    </sx:fieldElementMap>

     

Log in to post a comment.

MongoDB Logo MongoDB