• Resolved mkosmas

    (@mkosmas)


    Hi,

    Using [alg_product_description], the plugin generates a long list of product specifications.
    These specifications include:

    • 1.7
    • SIM 1 & SIM 2

    ..and many more.

    The website which will be reading the XML the plugin is generating asks that:
    special chars needs to be replaced into HTML special chars:
    ‘ is replaced with '
    ” is replaced with "
    & is replaced with &
    < is replaced with <
    > is replaced with >

    So my question is:
    How can i use the find/replace shortcodes for multiple characters, multiple times?
    <description>[alg_product_description find=””” replace=”"” find=”&” replace=”&” ]</description> does not do the trick.

    Please also note that we can not use <![CDATA[ for the description field.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @mkosmas,

    What you need to do is to set find_replace_sep attribute and then you can find/replace multiple values, i.e. something like that:

    [alg_product_description find_replace_sep="," find="a,b" replace="c,d"]

    I.e. in the example above a will be replaced with c and b will be replaced with d. Hope you get the idea…

    Please let me know if you have any questions or if something is not working as expected. And if you like the plugin, please consider leaving us a rating.

    Thread Starter mkosmas

    (@mkosmas)

    Hello,

    It is clear how it works. I will give it a try right away.
    Excellent plugin and support btw. 5/5

    Thank you

    Plugin Author Algoritmika

    (@algoritmika)

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Find and replace multiple’ is closed to new replies.