Skip to content

Reusable shared utility package for sanitize html functionality - #34933

Open
rbondesson wants to merge 19 commits into
element-hq:developfrom
ZacksBot:feature/shared-utils
Open

Reusable shared utility package for sanitize html functionality#34933
rbondesson wants to merge 19 commits into
element-hq:developfrom
ZacksBot:feature/shared-utils

Fix for renamed tests

d54200e
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 4, 2026 in 1m 9s

Annotations

Check warning on line 112 in apps/web/src/HtmlUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `export…from` to re-export `sanitizeHtmlText`.

See more on https://sonarcloud.io/project/issues?id=element-web&issues=AaBsAoQcy_01LXV_oS1J&open=AaBsAoQcy_01LXV_oS1J&pullRequest=34933

Check warning on line 169 in packages/shared-utils/src/html/sanitizeHtmlParams.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Compare with `undefined` directly instead of using `typeof`.

See more on https://sonarcloud.io/project/issues?id=element-web&issues=AaBsAn31y_01LXV_oS1G&open=AaBsAn31y_01LXV_oS1G&pullRequest=34933

Check warning on line 97 in packages/shared-utils/src/html/sanitizeHtmlParams.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=element-web&issues=AaBsXMWtMvU2nFaiUeTf&open=AaBsXMWtMvU2nFaiUeTf&pullRequest=34933

Check warning on line 112 in apps/web/src/HtmlUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `export…from` to re-export `isUrlPermitted`.

See more on https://sonarcloud.io/project/issues?id=element-web&issues=AaBsAoQcy_01LXV_oS1I&open=AaBsAoQcy_01LXV_oS1I&pullRequest=34933