fisharebest/webtrees — pull request #158 by ddrury (2014-06-16 08:38:34+00:00)
Title: Simplified version of my proposal to reinstate the title display for shared notes on Indi Tab

I submit this as a suggestion as a way to reinstate the addition of a 'title' to the Shared Notes display. If the note is formatted by the Census assistant then things are straightforward, If not then I propose the 1st line (or a proportion of it) is then extracted from a 'strip tagged' version of the html and that is used as the title. This leaves the original note contents untouched for when the display option is expanded.

PS Unrelated: The uniqid line has been changed because believe it or not on my windows system I was getting duplicate ids generated when I had two adjacent facts both with notes!