By using this site, you agree to the IDC Privacy Policy

Philip Carter

Chief Analyst, Europe







More results
Analyst Location

Germany



Coverage

Software



Regions

Western Europe, Central and Eastern Europe, Middle East and Africa



Related Links
\n "; analystBioCopy = analystBioCopy.replace(/

/g, ''); //remove paragraph open analystBioCopy = analystBioCopy.replace(/<\/p>/g, '

'); //replace closing paragraph with line breaks analystBioCopy = analystBioCopy.replace(/\/g, ''); //remove font face open analystBioCopy = analystBioCopy.replace(/<\/font\>/g, ''); //remove font face close var analystBioCopyLimit = 300; //characters if (analystBioCopy.length > analystBioCopyLimit + 50) { //if bio is more than 350 characters shorten it console.log('shortening bio'); var lastBrInLimit = analystBioCopy.lastIndexOf("

", analystBioCopyLimit); var lastPeriodInLimit = analystBioCopy.lastIndexOf(".", analystBioCopyLimit); var breakpointAt; if (lastBrInLimit > analystBioCopyLimit - 50) { //if the is a new paragraph starting within 50 characters before limit breakpointAt = lastBrInLimit; } else if (lastPeriodInLimit > analystBioCopyLimit - 50) { //if a sentence ends within 50 characters before limit breakpointAt = lastPeriodInLimit; breakpointAt++; //so the breakpoint character is inside the visible copy } else { var lastSpaceInLimit = analystBioCopy.lastIndexOf(" ", analystBioCopyLimit); breakpointAt = lastSpaceInLimit; breakpointAt++; //so the breakpoint character is inside the visible copy } var analystBioCopyVisible = analystBioCopy.substring(0, breakpointAt); var analystBioCopyHidden = analystBioCopy.substring(breakpointAt); analystBioCopy = analystBioCopyVisible + '' + analystBioCopyHidden + '' } $analystBio.html(analystBioCopy); });