@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.23.2 → 3.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dpr/assets/js/all.mjs +1 -1
- package/package.json +1 -1
- package/package.zip +0 -0
package/dpr/assets/js/all.mjs
CHANGED
|
@@ -1398,7 +1398,7 @@ class ShowMore extends DprClientClass {
|
|
|
1398
1398
|
const textContainer = element.querySelector('.dpr-show-more-content');
|
|
1399
1399
|
const button = element.querySelector('.dpr-show-hide-button');
|
|
1400
1400
|
const textContent = element.getAttribute('data-content');
|
|
1401
|
-
const shortString = textContent.substring(0, 200);
|
|
1401
|
+
const shortString = textContent.replaceAll(/<[^>]+>/g, '').substring(0, 200);
|
|
1402
1402
|
|
|
1403
1403
|
if (textContent.length > 200) {
|
|
1404
1404
|
textContainer.innerHTML = `${shortString}... `;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
|
|
3
3
|
"description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
|
|
4
|
-
"version": "3.23.
|
|
4
|
+
"version": "3.23.3",
|
|
5
5
|
"main": "dpr/assets/js/all.mjs",
|
|
6
6
|
"sass": "dpr/all.scss",
|
|
7
7
|
"engines": {
|
package/package.zip
CHANGED
|
Binary file
|