• Hello.
    I faced this problem:
    When I use “]” in tag values, it breaks the tag. Please tell me how can I avoid this?
    For example, if I create a checkbox with options:
    [checkbox checkbox-70 "one []" "two []"]
    the tag generator will generate it, but it will not be on the “Mail” tab.
    And if you do this:
    [checkbox checkbox-70 "one [" "two ["]
    then everything works well.

    Does the tag parser support escape sequences?

    • This topic was modified 4 years, 3 months ago by Vlad.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @vlad_im,

    To achieve that, you can use the HTML entities corresponding to the brackets:

    1. &# 091; for [
    2. &# 093; for ]

    Your code now should be look like this:

    
    [checkbox checkbox-70 "one &# 091;]" "two [&# 093;"]
    

    Hope this help you.

    Best regards,
    Yordan.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    MOderator note: remove the space between the ampesand and ’09’ in the examples above. The space had to be added so the code is visible.

    Thanks for the assistance @sterndata,

    I reply to test the trick @tobifjellner gave me in order to try showing HTML entities, and to avoid confusion for @vlad_im.

    This is the way the code should be looks like:

    [checkbox checkbox-70 "one []" "two []"]

    PD: I confirm that we can’t use HTML entities in forum answers. Please follow the instructions above in order to use the code I gave you (removing the space between &# and 091/093).

    • This reply was modified 4 years, 3 months ago by Yordan Soares. Reason: Confirmation that it does not work. Please follow the instructions above
    Thread Starter Vlad

    (@vlad_im)

    @yordansoares, thanks for the tip.
    Can you find out somewhere what other characters need such processing?

    Hello @vlad_im,

    Your case is interesting (I had never tried to use brackets inside a tag legend), so these are not very common situations. But I know that the backslash cannot be used either, in those cases can be useful to use HTML entities.

    By the way, have you applied the solution I left above?

    Best regards,
    Yordan.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I’m investigating this issue. I think it would be ideal if you could escape ] in a form-tag value with a backslash.

    Thanks for reporting, @vlad_im

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What is the escape sequence for tag values?’ is closed to new replies.