Skip to content

Commit dab5f60

Browse files
committed
remove html from org descriptions
1 parent 67ce33e commit dab5f60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/views/student-orgs/clean-org.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import type {StudentOrgType} from './types'
3+
import {fastGetTrimmedText} from '../../lib/html'
34

45
export default function cleanOrg(org: StudentOrgType): StudentOrgType {
56
const name = org.name.trim()
@@ -20,7 +21,7 @@ export default function cleanOrg(org: StudentOrgType): StudentOrgType {
2021

2122
const category = org.category.trim()
2223
const meetings = org.meetings.trim()
23-
const description = org.description.trim()
24+
const description = fastGetTrimmedText(org.description)
2425
let website = org.website.trim()
2526
if (website && /^https?:\/\//.test(website)) {
2627
website = `http://${website}`

0 commit comments

Comments
 (0)