Skip to content

Instantly share code, notes, and snippets.

@ulope
Created July 7, 2012 13:14
Show Gist options
  • Save ulope/3066437 to your computer and use it in GitHub Desktop.
Save ulope/3066437 to your computer and use it in GitHub Desktop.
html = format_html(
'<p class="url">{0} <a {1}>{2}</a><br />{3} {4}</p>',
_('Currently:'), flatatt(final_attrs), value,
_('Change:'), html
)
html = format_html(
'<p class="url">{0}: <a {1}>{2}</a><br />{3}: {4}</p>',
_('Currently'), flatatt(final_attrs), value, _('Change'), html
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment