public class ImageAttachmentAltAttributeService extends Object
Constructor and Description |
---|
ImageAttachmentAltAttributeService() |
Modifier and Type | Method and Description |
---|---|
String |
addDefaultAltAttributeIfNeeded(String imgHtmlTag,
String imgSrcUrlBeforeAnyTransformation) |
protected String |
getFileNameFromUrlOrWholeUrl(String imgSrcUrlBeforeAnyTransformation)
Tries to extract file name with '.' extension, eg
http://some-domain.com/1/2/3/someimage.png -> someimage.png
http://some-domain.com/1/2/3 -> http://some-domain.com/1/2/3
|
Copyright © 2002-2021 Atlassian. All Rights Reserved.