Using Angular 4.3.0
Say I have a string like this that is a property of a component.
test#2 bla blatest1234 56
test#2 bla bla
test1234 56
You shoud write the parameter as a string.
<div [innerHTML]="'test here'"></div>
You need to pass your [innerHTML] as a string wrap it with single quotes, <div [innerHTML]="'<b>test here</b>'"></div>
[innerHTML]
<div [innerHTML]="'<b>test here</b>'"></div>