Looking for the old docs site? You can still view it for a limited time here.

htmlToPlainText

Description

Strip HTML from a string.

Usage

In HTML Template Binding

{{ htmlToPlainText_expression | htmlToPlainText }}

In JavaScript

$filter('htmlToPlainText')(string)

Parameters

Param Type Details
string string

The value to strip the html from.

Example

Source





Demo