Escape SPACE in wiki/ html

Here is a button I use often:


\define newContact()
    <$action-sendmessage
        $message="tm-new-tiddler"
        title="New Contact"
        tags="Contact"
        text="{{||ContactInformation}}"
        works-at=""
        code=""
        personality=""/>
\end

<$button class=<<tv-config-toolbar-class>> selectedClass="tc-selected" tooltip="New Contact" actions=<<newContact>>>
  {{$:/core/images/quote}}
</$button>

So long as ‘tags’ do not contain a space, there is no problem. But if ‘tags’ contains space, it ends up adding multiple tags.

So, tags="Contact" works but tags="Personal Contact" produces "Personal and Contact" as tags.

How do I solve this?

Wrap multi-word tags in [[]]

Try:

tags="[[Personal Contact]] tag2"
1 Like

@amreus Thanks. This works perfectly.