@pocketprep/ui-kit 3.5.30 → 3.7.0

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.
@@ -72,6 +72,7 @@
72
72
  import { ref } from 'vue'
73
73
  import { dark as vDark } from '../../directives'
74
74
  import RadioButton from './RadioButton.vue'
75
+ import { stripHtmlTags } from '../../utils'
75
76
 
76
77
  interface IItem {
77
78
  value: string | number
@@ -115,14 +116,6 @@ const keyPressedItem = (e: KeyboardEvent) => {
115
116
  }
116
117
  }
117
118
 
118
- const stripHtmlTags = (string?: string) => {
119
- if (string) {
120
- const div = document.createElement('div')
121
- div.innerHTML = string
122
- return div.textContent || ''
123
- }
124
- return ''
125
- }
126
119
  </script>
127
120
 
128
121
  <style lang="scss">