Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

support 
 inside title attribute #1799

Open
chrisv-dev opened this issue Oct 25, 2017 · 1 comment
Open

support 
 inside title attribute #1799

chrisv-dev opened this issue Oct 25, 2017 · 1 comment

Comments

@chrisv-dev
Copy link

chrisv-dev commented Oct 25, 2017

Subject of the issue

translate filter does not show as newline.

Your environment

version of angular-translate: 2.15.2
version of angular: 1.3.14
which browser and its version: Google Chrome 61.0.3163.100

Steps to reproduce

add a translate filter to the title attribute of an element with multiple lines.
<td title="{{'some text &#10;some more text in a new line' | translate}}">

Expected behaviour

The title-tooltip should be shown and contain a newline. Content should look like this:
some text
some more text in a new line

Actual behaviour

Instead the tooltip content looks like this:
some text &#10;some more text in a new line

Notes

Using the &#10; without the translate filter like below works fine for me:
<td title="some text &#10;some more text in a new line">

@knalli
Copy link
Member

knalli commented Nov 1, 2017

Ok, go ahead :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants