Don't interpret html inside poll options. (#1527)

* Don't interpret html inside poll options.
Closes #1362

* Update translations

* Mark poll_percent_format as untranslatable
main
Levi Bard 5 years ago committed by Alibek Omarov
parent 2ed14d0b90
commit bf62187fe2
  1. 3
      app/src/main/java/com/keylesspalace/tusky/viewdata/PollViewData.kt

@ -22,6 +22,7 @@ import androidx.core.text.parseAsHtml
import com.keylesspalace.tusky.R
import com.keylesspalace.tusky.entity.Poll
import com.keylesspalace.tusky.entity.PollOption
import com.keylesspalace.tusky.util.HtmlUtils
import java.util.*
import kotlin.math.roundToInt
@ -74,4 +75,4 @@ fun PollOption.toViewData(): PollOptionViewData {
votesCount,
false
)
}
}

Loading…
Cancel
Save