Hi, how to escape shortcodes that are nested into other one. e.g. in the following codes i want to process first shortcode and not nested one.

[highlight]
  [highlight]
    highlighted text here.
  [/highlight]
[/highlight]

thanks.

CommentFileSizeAuthor
#4 shortcode-escape-1376836-4.png49.7 KBdenes.szabo

Comments

denes.szabo’s picture

Assigned: Unassigned » denes.szabo

Nice question, I have no idea. I will look into the code then maybe I can answer to you…

denes.szabo’s picture

Status: Active » Needs review

I have a good news to you: I allowed escaped codes, if you duplicate the [] around the code then this code will be not parsed by the api - similar to the WP-s shortcode API.

So use your code this way:

[highlight]
  [[highlight]]
    highlighted text here.
  [[/highlight]]
[/highlight]

I committed it to the dev version only. I am waiting for your opinion and test result!

dropletz’s picture

Hi,
i check it under older versions also in dev version without any success!

Thanks.

denes.szabo’s picture

StatusFileSize
new49.7 KB

I tried it again with a clean drupal + shortcode-7.x-dev: I inserted the code I have given before. It was success on a first run:

Shortcode escaped

Could you try it again?

denes.szabo’s picture

Status: Needs review » Fixed

Today I committed a fix, it seems it solves your problem.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.