Pipe in wraps

So you want your menu to look like this: item1 | item2 | item3. And you know about optionSplit. But when you try to construct the option split to look like this you realize that pipe is a special character in wraps and you cannot insert it in the wrap and expect it to simply appear as a pipe. So how do we wrap our heads around this one?

There are two solutions to this problem and the first one is probably the most common one.

  • Use the HTML entity instead of the | character

wrap = | | |*| | | |*|

  • Change the split character so that pipe is not of a special meaning any more

wrap.splitChar = !
wrap = ! |

Your thoughts

No comments

Add comment

* - required field