Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Links with 2 query parameters

In MessageML: am I correct that it is impossible to have an <a> element with an href with two query parameters?

If you try out in https://renderer-tool.app.symphony.com/ :

<a href="https://google.com?a=1&b=2">link</a>

It will give an error, but taking out &b=2 works fine. I assume this is a bug? Thanks!

Posted 3 years ago
Votes Newest


In MessageML, you will need to escape the ampersand character (&) to (&amp;).

<a href="https://google.com?a=1&amp;b=2">link</a>

If you are using Symphony's BDKs, there are helper classes to help you do this automatically to sanitize content that you believe might contain special characters.

// Java BDK
import com.symphony.bdk.core.service.message.util.MessageUtil;

public void doWork() {
    String escaped = MessageUtil.escapeSpecialChars("Hello <b>World</b> A&W's are great!");
    // Hello &lt;b&gt;World&lt;/b&gt; A&amp;W&apos;s are great!
# Python BDK
from symphony.bdk.core.service.message.messageml_util import escape_special_chars

public void doWork() {
    escaped = escape_special_chars("Hello <b>word</b> A&W's are great!")
    # Hello &lt;b&gt;World&lt;/b&gt; A&amp;W&apos;s are great!

You can refer to the MessageML documentation for complete details on message format: https://docs.developers.symphony.com/building-bots-on-symphony/messages/overview-of-messageml/message-format-messageml#xml-formatting

Posted 3 years ago
Yong Sheng Tan
39 × 2 Administrator
1 Answer
3 years ago
2 years ago