Which content is not allowed in WeGuide and why

Modified on Fri, 24 Mar 2023 at 10:16 PM

 

In this article, we will explain which content is not allowed in WeGuide and why that is the case.


Which content is not allowed in WeGuide and why

WeGuide lets organisations create their own engagement and programs, without touching a single line of code. We’ve made it easy for you to update and change your content. The only limit is your imagination, at least that’s what we’re trying to promote. But, for security reasons, we can’t allow all content in our system. We apply a method called sanitisation which will check if the content that you’ve entered is malicious and might harm our system. If you want to learn more about it, read this article about Little Bobby Tables, which explains why sanitisation is important


So what does this mean for you?


In the admin portal, we have three kinds of fields


  1. Standard fields
  2. HTML field
  3. Logic field


Each field has its own sanitisation rules. The sanitisation rules are basically rejecting certain characters and content


Standard field

A standard field is a field that is not an HTML field or a logic field. All content is allowed in these fields, except the following characters and words:


  • >, <, <=, >=, !=, ""


HTML field

HTML fields are input fields in the WeGuide system where you can stylize the text or insert images. Underneath some examples of HTML fields that are available in the WeGuide system.


Example of an HTML field where you can insert images and stylize text. 


Example of an HTML field where you can only stylize text



S
similar sanitisation applies as for the standard fields. Since it's HTML, the following characters and strings are also allowed and exempted from any sanitisation rules:
  • The following tags: %w[a b i strong em p param h1 h2 h3 h4 h5 h6 br hr ul li img iframe span div]
  • The following attributes: %w[href name src type value width height data style allowfullscreen data-mce-fragment target rel id class]


Logic field


Similar sanitisation applies as for the standard field. Since it's about business logica, all the operators this document are also allowed and exempted from sanitisation rules. 




Was the article missing some information or unclear? Please click the thumbs down below and let us know how to improve. Your feedback is always appreciated.











Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article