After you setup angularjs 2 in your visual studio 2015, if you get this error:
Severity Code Description Project File Line Suppression StateSeverity Code Description Project File Line Suppression StateError TS2415 Class ‘Subject<T>’ incorrectly extends base class ‘Observable<T>’. Types of property ‘lift’ are incompatible. Type ‘<R>(operator: Operator<T, R>) => Observable<T>’ is not assignable to type ‘<R>(operator: Operator<T, R>) => Observable<R>’. Type ‘Observable<T>’ is not assignable to type ‘Observable<R>’. Type ‘T’ is not assignable to type ‘R’. TypeScript Virtual Projects C:\Users\xxxxxxx\Documents\Visual Studio 2015\Projects\Angular2Demo\Angular2Demo\node_modules\rxjs\Subject.d.ts 16 Active
In file C:\Users\Username\Documents\IISExpress\config\applicationhost.config, under section
there was all websites (projects) I have ever opened. I deleted these items and now, on New Website there is no number in brackets. NOTE: I think it is not wise to delete the entire file but only the part that applies to sites/projects.
static string StripHTML (string inputString)
(inputString, "<.*?>", string.Empty);
But if the input string is like this:
String s = "</b.......>"
You need to decode it first using http utils as follows:
Add a sub functiona and pass the input string to that to decode the string and use the regular expression avobe.
public static string DecodeHtmlEntities(string text)