Skip to content

Commit 37c15ca

Browse files
authored
Create README.md
1 parent d28b2d4 commit 37c15ca

File tree

1 file changed

+13
-0
lines changed
  • Specialized Areas/Regular Expressions/Avoid Direct String in Widget HTML Templates -HealthScan Finding

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**Use Case**
2+
1. Adding string in HTML template without ${} or gs.getMessage('string') in server script attracts HealthScan findings.
3+
2. These string do not get translated in multi lingual portals.
4+
3. This will help in ensuring internationalization. Same BR can be used in "sp_ng_template" table.
5+
6+
**How to use**
7+
1. Add this code as before insert/update BR on sp_widget table.
8+
2. The condition will be "Body HTML Changes."
9+
3. If Internationalisation is not followed, error message will be shown and action will be aborted.
10+
11+
**Regex**
12+
/>([a-zA-Z].*)<\//
13+
This Regex check any direct string between > and </ without ${} or ::data.string or :data.string

0 commit comments

Comments
 (0)