Skip to content

Commit 3ee6b91

Browse files
author
akhenda
committed
fix(listings): handle html entities in toolbar title
1 parent b080e7e commit 3ee6b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/ListingsScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
View, FlatList, Text, ActivityIndicator,
88
} from 'react-native';
99

10+
import { stripHTML } from 'src/utils/strip';
1011
import shallowCompare, { shallowEqual } from 'src/utils/shallowCompare';
1112
import { getCategoryListings, searchListings } from 'src/state/actions/listings';
1213
import { addFavourite, removeFavourite } from 'src/state/actions/app';
@@ -140,9 +141,9 @@ class ListingsScreen extends Component {
140141
menuRightIcon="md-map"
141142
WrapperComponent={View}
142143
menuLeftIcon="arrow-back"
143-
headerTitle={headerTitle}
144144
onLeftButton={Actions.pop}
145145
showToolbarRightButton={false}
146+
headerTitle={stripHTML(headerTitle)}
146147
>
147148
<View style={[styles.content, empty ? { height: emptyHeight } : null]}>
148149
{empty

0 commit comments

Comments
 (0)