We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ce33e commit dab5f60Copy full SHA for dab5f60
source/views/student-orgs/clean-org.js
@@ -1,5 +1,6 @@
1
// @flow
2
import type {StudentOrgType} from './types'
3
+import {fastGetTrimmedText} from '../../lib/html'
4
5
export default function cleanOrg(org: StudentOrgType): StudentOrgType {
6
const name = org.name.trim()
@@ -20,7 +21,7 @@ export default function cleanOrg(org: StudentOrgType): StudentOrgType {
20
21
22
const category = org.category.trim()
23
const meetings = org.meetings.trim()
- const description = org.description.trim()
24
+ const description = fastGetTrimmedText(org.description)
25
let website = org.website.trim()
26
if (website && /^https?:\/\//.test(website)) {
27
website = `http://${website}`
0 commit comments